package com.sxt.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sxt.config.GirlProperties;

@RestController
public class GirlController {
 
	@Autowired
	private GirlProperties girlProperties;
	
	@GetMapping("/girl")
	public String getGirl() {
		return this.girlProperties.getName()+":"+this.girlProperties.getAge();
	}
}
